<?php
namespace app\common\behavior;

class ApiLog
{

    /**
     * 执行行为 run方法是Behavior唯一的接口
     * @access public
     * @param mixed $params  行为参数
     * @return void
     */
    public function run($params) {}


    public function responseEnd($response)
    {
        model('common/Apilog')->record($response);
    }

    public function appEnd($response)
    {
        model('common/Apilog')->record($response);
    }

}